package com.example.service;


import com.example.bean.User;
import com.example.dao.UserDao;
import com.example.factory.UserDaoFactory;

public class UserService {
    private UserDao userDao;
    public UserService(){
        this.userDao=UserDaoFactory.getUserDao();
    }
    //自定义成员方法实现根据参数指定的User对象来调用Dao层实现登录功能
    public User userLoginService(User user){
        return userDao.userlogin(user);
    }
}
